ifeq (${TESTCASE}, hello_world)
  C_SOURCES += testapp/hello_world/hello_world.c
else ifeq (${TESTCASE}, smoke_bus)
  ASM_SOURCES += testapp/smoke/bus_smoke/ct_bus_smoke.s
else ifeq (${TESTCASE}, ISA_AMO)
  ASM_SOURCES += testapp/ISA/ISA_AMO/ct_lsu_amo_basic_smart.s
else ifeq (${TESTCASE}, debug_gpr)
  ASM_SOURCES += testapp/debug/debug_gpr/debug_read_write_gpr.s
else ifeq (${TESTCASE}, ISA_THEAD)
  ASM_SOURCES += testapp/ISA/ISA_THEAD/isa_thead_smoke.s
else ifeq (${TESTCASE}, cache_op)
  ASM_SOURCES += testapp/cache/idcache_oper/ct_idcache_oper.s
else ifeq (${TESTCASE}, debug_memory)
  ASM_SOURCES += testapp/debug/debug_memory/debug_read_write_memory.s
else ifeq (${TESTCASE}, ISA_FP)
  ASM_SOURCES += testapp/ISA/ISA_FP/ct_fpu_smoke.s
else ifeq (${TESTCASE}, ISA_IMAC)
  ASM_SOURCES += testapp/ISA/ISA_IMAC/ct_imac_smoke.s
else ifeq (${TESTCASE}, coremark)
  C_SOURCES += testapp/coremark/core_list_join.c
  C_SOURCES += testapp/coremark/core_main.c
  C_SOURCES += testapp/coremark/core_matrix.c
  C_SOURCES += testapp/coremark/core_portme.c
  C_SOURCES += testapp/coremark/core_state.c
  C_SOURCES += testapp/coremark/core_util.c
  C_SOURCES += testapp/coremark/cvt.c
  C_INCLUDES += -Itestapp/coremark
else ifeq (${TESTCASE}, MMU)
  ASM_SOURCES += testapp/MMU/ct_mmu_basic.s
else ifeq (${TESTCASE}, csr)
  ASM_SOURCES += testapp/csr/ct_csr_operate.s
else ifeq (${TESTCASE}, ISA_BARRIER)
  ASM_SOURCES += testapp/ISA/ISA_BARRIER/ct_lsu_barrier_smart.s
else ifeq (${TESTCASE}, plic_int)
  ASM_SOURCES += testapp/interrupt/int_smoke/ct_plic_int_smoke.s
else ifeq (${TESTCASE}, sleep)
  C_SOURCES += testapp/sleep/sleep_test.c
else
  C_SOURCES += testapp/no_exist.c
endif


